/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: ProfitAndLossDivisionDAOImpl.java
 * @PageName		: 손익현황 - 사업부별
 * @Date			: 오후 12:00:33
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.management.dao.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.pulp.management.dao.ProfitAndLossDivisionDAO;
import com.pulp.management.model.ProfitAndLossDivisionInfo;

/**
 * @author 최경민
 *
 */
public class ProfitAndLossDivisionDAOImpl extends SqlMapClientDaoSupport implements ProfitAndLossDivisionDAO {

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossDivisionDAO#getDivisionColumnChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionColumnChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.DivisionColumnChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossDivisionDAO#getDivisionTotalColumnChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionTotalColumnChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.DivisionTotalColumnChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossDivisionDAO#getDivisionTableList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionTableList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.DivisionTableList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.ProfitAndLossDivisionDAO#getDivisionPieChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<ProfitAndLossDivisionInfo> getDivisionPieChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.DivisionPieChartList", mapArgs);
	}
}
